package com.linb.pan.schedule.test.task;

import com.linb.pan.schedule.ScheduleTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SimpleScheduleTask implements ScheduleTask {

    /**
     * 获取定时任务的名称
     */
    @Override
    public String getName() {
        return "测试定时任务";
    }

    @Override
    public void run() {
        log.info(getName() + "正在执行...");
    }

}
